package org.cxy.demo.service;

import org.springframework.stereotype.Service;

@Service
public class UserService {
    
    public String processUserData(String userId) {
        // 模拟业务处理
        try {
            Thread.sleep(80);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
        return "处理用户数据: " + userId;
    }
    
    public void batchProcess() {
        // 模拟批量处理 - 会触发慢方法警告
        try {
            Thread.sleep(800);
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }
}